package online.longzipeng.cinemasys.service.impl;

import online.longzipeng.cinemasys.entity.SysUserRole;
import online.longzipeng.cinemasys.mapper.SysUserRoleMapper;
import online.longzipeng.cinemasys.service.SysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import online.longzipeng.cinemasys.vo.sysuser.SysUserRoleSaveVO;
import online.longzipeng.cinemasys.vo.sysuser.SysUserRoleUpdateVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lzp
 * @since 2021-04-09
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {

    @Override
    public void add(SysUserRole sysUserRole) {
        save(sysUserRole);
    }

    @Override
    public void updateSysUserRole(SysUserRole sysUserRole) {
        updateById(sysUserRole);
    }
}
